import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty } from "class-validator";

export class LoginDto {
    @ApiProperty({
        description:'账号'
    })
    @IsNotEmpty({
        message:'账号不能为空'
    })
    account: string;

    @ApiProperty({
        description:'密码'
    })
    @IsNotEmpty({
        message:'密码不能为空'
    })
    password: string;

    @ApiProperty({
        description:'验证码'
    })
    @IsNotEmpty({
        message:'验证码不能为空'
    })
    code: string;

    @ApiProperty({
        description:'userKey'
    })
    @IsNotEmpty({
        message:'userKey不能为空'
    })
    userKey: string;
}
